package k2_oop.p6_relation.demo08;

public class TestDemo8 {
    public static void main(String[] args) {

        Teacher teacher = new Teacher("java", "教授");
        Student[] students = {
          new Student("tom",10),
          new Student("jerry",20),
          new Student("kitty",30),
        };

        Classes classes = new Classes(teacher,students);

        classes.display();


        classes.setTeacher(new Teacher("c","副教授"));

        classes.display();

        classes.addStudent(new Student("舒克",30));
        classes.addStudent(new Student("贝塔",35));
        classes.addStudent(new Student("大脸猫",32));

        classes.display();


        classes.removeStudent(1);

        classes.display();




    }
}
